﻿using System;
using System.Collections.Generic;
using System.Text;
using Mpi.Common.Collections;
using Xeml.Document.Contracts;

namespace Xeml.Document 
{
    public class TermCollection: ObservableIdCollectionBase< Term, string>
    {
        protected override string GetIdentifiere(Term item)
        {
            return item.TermId;
        }

        protected override void SetOwner(Term item)
        {
            item.Collection = this;
                 
        }

        protected override void RemoveOwner(Term item)
        {
            item.Collection = null;
        }
    }

}
